import Mock from 'mockjs'

const data = Mock.mock({
  'items|30': [{
    id: '@id',
    project_explain: '@sentence(10, 20)',
    'status|1': ['published', 'draft', 'deleted'],
    project_name: 'name',
    submission_date: '@datetime'
  }]
})

export default [
  {
    url: 'api/v1/project-file/',
    type: 'get',
    response: config => {
      const items = data.items

      return {
        code: 20000,
        total: items.length,
        results: items
      }
    }
  }
]
